<?php
$this->breadcrumbs=array(
	'Businesses'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Business', 'url'=>array('index')),
	array('label'=>'Create Business', 'url'=>array('create')),
	array('label'=>'Update Business', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Business', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Business', 'url'=>array('admin')),
);
?>

<h1>View Business #<?php echo $model->id; ?></h1>
<?php 
	foreach ($model->tblValuepropositions as $value)
		{
			$vp = $vp.$value->name."; ";

		}
	foreach ($model->tblBusinessresources as $resource)
		{
			$bres = $bres.$resource->name."; ";

		}
?>	
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'businessGoal',
		'businessStatus',
		array(
			'label'=>'Business Type',
			'value'=>BusinessType::model()->findByPk($model->businessType_id)->name,
		),
		array(
			'label'=>'Value Propositions',
			'value'=>$vp,
		),
		array(
			'label'=>'Business Resources',
			'value'=>$bres,
		),
		array(
			'label'=>'Economic Sector',
			'value'=> EconomicSector::model()->findByPk($model->economicSector_id)->name,
		),
		array(
			'label'=>'Business Sector',
			'value'=> BusinessSector::model()->findByPk($model->businessSector_id)->name,
		),
		array(
			'label'=>'Industry Group',
			'value'=> IndustryGroup::model()->findByPk($model->industryGroup_id)->name,
		),
	),
)); ?>
